﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using OznerOA.BLL.Workflow.Request;
using OznerOA.Common;

namespace OznerOA.UI.Workflow.Request
{
    public partial class FrmRequestHandled : FrmBase
    {
        private RequestHandledBLL requestHandle = new RequestHandledBLL();
        public FrmRequestHandled()
        {
            InitializeComponent();
            this.Load += FrmRequestHandled_Load;
        }

        private void FrmRequestHandled_Load(object sender, EventArgs e)
        {
            ShowWaiting("正在查询已办事宜...");
            BaseResult<List<Model.Workflow>> br = ExecuteBLL<List<Model.Workflow>>(requestHandle, "GetAllWorkflowComplate",0);
            if(br.Code == Code.OK)
            {
                logBLL.Info("查询到结果:{0}条", br.Object.Count);
                gridControl1.DataSource = br.Object;
            }
            CloseWaiting();
        }
    }
}